package com.annotation.test02;

/**
 * @author bin
 * @date 2025 - 03 -28
 **/
public class Mian {
    public static void main(String[] args) {
        Class<ChinaPeople> clazz = ChinaPeople.class;

        if (clazz.isAnnotationPresent(HelloWorldAnnotation.class));
        {
            HelloWorldAnnotation annotation = clazz.getAnnotation(HelloWorldAnnotation.class);
            String  val =  annotation.value();

            System.out.println("您国家的问候语为：" + val);
        }
    }
}
